//
//  JParser.h
//  MobileGuide
//
//  Created by 鞠 文杰 on 14-5-12.
//  Copyright (c) 2014年 CSICS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DOConstants.h"

@interface DOQuery : NSObject

- (id)initWithClassName:(NSString *)classname
                    url:(NSString *)url;

//- (id)initWithURL:(NSString *)url;

//- (void)fetchDataInBackground:(DOBooleanResultBlock)block;
- (void)fetchDataInBackground:(DOArrayResultBlock)block;

- (void)fetchDataInBackgroundWithURL:(NSString*)url
                               block:(DOBooleanResultBlock)block;

@property (nonatomic,strong) NSString *url;
@property (nonatomic,strong) DOExtractDataBody extractMethod;
@end
